﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="index.aspx.cs" Inherits="hospital_registration_system.user.index" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>

    <title>挂号系统首页</title>
     <link href="../Content/bootstrap.min.css" rel="stylesheet" />
     <link href="../css/base.css" rel="stylesheet" />
     <link href="../css/index.css" rel="stylesheet" />
    <style type="text/css">
        .auto-style1 {
            width: 100%;
            border: 1px solid #D0E9C6;
        }
    </style>
    </head>
<body style="background-color:#f7f8f6">
    <form id="form1" runat="server">
 <!-- header区域 -->
    <div class="banner">
      <img src="../images/banner.jpg"  style="height:150px;width:100%" />
    </div>
 <!-- header区域结束 -->

 <!-- 导航栏区域 -->
     <div class="nav">
    <div class="wrap nav_list">
         <ul>
         <li class=" current">按科室挂号</li>
          <li>按疾病挂号</li>
          <li>我的挂号</li>
          <li >就诊记录</li>
        <li >个人中心</li>
         </ul>
     
      
        </div>
    </div>
 <!-- 导航栏区域结束-->


 <!-- 内容区域 -->
  <div class="wrap content"  style="background-color:#fff ;height:auto!important;height:530px;min-height:530px;font-size:16px" >

   
 <!-- 按科室挂号 -->
<div class="item" style="display:block">
       <span class="glyphicon glyphicon-chevron-right ">请选择就诊日期为：<asp:Label ID="lblState" runat="server"></asp:Label></span>
     <asp:Calendar ID="calDate" runat="server" Height="212px" Width="359px"></asp:Calendar>      
       
        
       
     <asp:Button ID="btnSubmitDate1" runat="server"  Text="确认选择" OnClick="btnSubmit_Click" Height="42px" Width="146px" />
          <br />
          <br />
  
    <span class="glyphicon glyphicon-chevron-right ">请选择科室：</span>
           <asp:DropDownList ID="ddlDateDep" runat="server" Height="24px" Width="242px" AutoPostBack="True" OnSelectedIndexChanged="ddlDateDep_SelectedIndexChanged">
            </asp:DropDownList>
          &nbsp;<br />
       <br />
<div class="clinicTable">
     <asp:GridView ID="gdvClinic_time" runat="server" AllowPaging="True" DataKeyNames="id" AutoGenerateColumns="False" CellPadding="4" ForeColor="#333333" GridLines="None" CssClass="gridview">
                <AlternatingRowStyle BackColor="White" />
                <Columns>
                    <asp:TemplateField HeaderText="id">
                        <ItemTemplate>
                            <asp:Label ID="Label1" runat="server" Text='<%# Bind("id") %>'></asp:Label>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="医生姓名">
                        <ItemTemplate>
                            <asp:Label ID="Label2" runat="server" Text='<%# Bind("doctor_name") %>'></asp:Label>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="就诊日期">
                        <ItemTemplate>
                            <asp:Label ID="Label3" runat="server" Text='<%# Bind("treatment") %>'></asp:Label>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="就诊时段">
                        <ItemTemplate>
                            <asp:Label ID="Label4" runat="server" Text='<%# Bind("see_time") %>'></asp:Label>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="本时段余量">
                        <ItemTemplate>
                            <asp:Label ID="Label5" runat="server" Text='<%# Bind("count") %>'></asp:Label>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:CommandField ShowSelectButton="True" />
                </Columns>   
                <FooterStyle BackColor="#53a694" Font-Bold="True" ForeColor="White" />
                <HeaderStyle BackColor="#53a694" Font-Bold="True" ForeColor="White" Height="38px" VerticalAlign="Middle" />
                <PagerStyle BackColor="#53a694" ForeColor="White" HorizontalAlign="Center" Height="30px" />
                <RowStyle BackColor="#f0faf8" Height="36px" />
                <SelectedRowStyle BackColor="#f3eae0" Font-Bold="True" ForeColor="#333333" />
                <SortedAscendingCellStyle BackColor="#F8FAFA" />
                <SortedAscendingHeaderStyle BackColor="#246B61" />
                <SortedDescendingCellStyle BackColor="#D4DFE1" />
                <SortedDescendingHeaderStyle BackColor="#15524A" />
      
            </asp:GridView>
   
        <asp:Button ID="Button2" runat="server"  Text="点此提交预约"  Height="42px" Width="146px" OnClick="Button2_Click" />


</div>


</div>

      <!-- 按疾病挂号 -->
       <div class="item">
              <span class="glyphicon glyphicon-chevron-right ">请选择就诊日期为：<asp:Label ID="lblState1" runat="server"></asp:Label></span>
     <asp:Calendar ID="calDate1" runat="server" Height="212px" Width="359px"></asp:Calendar>      
     <asp:Button ID="btnSubmitDate2" runat="server"  Text="确认选择" OnClick="btnSubmit_Click1" Height="42px" Width="146px" />
          <br />
          <br />
     <span class="glyphicon glyphicon-chevron-right ">请选择疾病名称：</span>
            <asp:DropDownList ID="ddlIll" runat="server" Height="24px" Width="242px" AutoPostBack="True" OnSelectedIndexChanged="ddlIll_SelectedIndexChanged">
            </asp:DropDownList>
           <br />
    <span class="glyphicon glyphicon-chevron-right ">可选相关科室有：</span>
           <asp:DropDownList ID="ddlDateDep1" runat="server" Height="24px" Width="242px" AutoPostBack="True" OnSelectedIndexChanged="ddlDateDep1_SelectedIndexChanged">
            </asp:DropDownList>
          &nbsp;<br />
<div class="clinicTable">
     <asp:GridView ID="gdvClinic_time1" runat="server" AllowPaging="True" DataKeyNames="id" AutoGenerateColumns="False" CellPadding="4" ForeColor="#333333" GridLines="None" CssClass="gridview">
                <AlternatingRowStyle BackColor="White" />
                                <Columns>
                    <asp:TemplateField HeaderText="id">
                        <ItemTemplate>
                            <asp:Label ID="Label1" runat="server" Text='<%# Bind("id") %>'></asp:Label>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="医生姓名">
                        <ItemTemplate>
                            <asp:Label ID="Label2" runat="server" Text='<%# Bind("doctor_name") %>'></asp:Label>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="就诊日期">
                        <ItemTemplate>
                            <asp:Label ID="Label3" runat="server" Text='<%# Bind("treatment") %>'></asp:Label>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="就诊时段">
                        <ItemTemplate>
                            <asp:Label ID="Label4" runat="server" Text='<%# Bind("see_time") %>'></asp:Label>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="本时段余量">
                        <ItemTemplate>
                            <asp:Label ID="Label5" runat="server" Text='<%# Bind("count") %>'></asp:Label>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:CommandField ShowSelectButton="True" />
                </Columns>     
                <FooterStyle BackColor="#53a694" Font-Bold="True" ForeColor="White" />
                <HeaderStyle BackColor="#53a694" Font-Bold="True" ForeColor="White" Height="38px" VerticalAlign="Middle" />
                <PagerStyle BackColor="#53a694" ForeColor="White" HorizontalAlign="Center" Height="30px" />
                <RowStyle BackColor="#f0faf8" Height="36px" />
                <SelectedRowStyle BackColor="#f3eae0" Font-Bold="True" ForeColor="#333333" />
                <SortedAscendingCellStyle BackColor="#F8FAFA" />
                <SortedAscendingHeaderStyle BackColor="#246B61" />
                <SortedDescendingCellStyle BackColor="#D4DFE1" />
                <SortedDescendingHeaderStyle BackColor="#15524A" />
      
            </asp:GridView>
   
        <asp:Button ID="Button3" runat="server"  Text="点此提交预约"  Height="42px" Width="146px" OnClick="Button3_Click"/>


</div>
       </div>

        <!-- 我的挂号 -->
       <div class="item">
          <div class="myRegistration">
     <asp:GridView ID="gdvAppointment" runat="server"  AllowPaging="True" DataKeyNames="id" AutoGenerateColumns="False" CellPadding="4" ForeColor="#333333" GridLines="None" CssClass="gridview" OnRowDeleting="gdvAppointment_RowDeleting">
                <AlternatingRowStyle BackColor="White" />
                <Columns>
                    <asp:TemplateField HeaderText="id">
                        <ItemTemplate>
                            <asp:Label ID="Label1" runat="server" Text='<%# Bind("id") %>'></asp:Label>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="患者姓名">
                        <ItemTemplate>
                            <asp:Label ID="Label2" runat="server" Text='<%# Bind("patient_name") %>'></asp:Label>
                        </ItemTemplate>
                    </asp:TemplateField>
                     <asp:TemplateField HeaderText="疾病名">
                        <ItemTemplate>
                            <asp:Label ID="Label3" runat="server" Text='<%# Bind("illness_name") %>'></asp:Label>
                        </ItemTemplate>
                    </asp:TemplateField>
                     <asp:TemplateField HeaderText="科室名">
                        <ItemTemplate>
                            <asp:Label ID="Label4" runat="server" Text='<%# Bind("department_name") %>'></asp:Label>
                        </ItemTemplate>
                    </asp:TemplateField>
                     <asp:TemplateField HeaderText="医生名">
                        <ItemTemplate>
                            <asp:Label ID="Label5" runat="server" Text='<%# Bind("doctor_name") %>'></asp:Label>
                        </ItemTemplate>
                    </asp:TemplateField>   
                    <asp:TemplateField HeaderText="预约时段">
                        <ItemTemplate>
                            <asp:Label ID="Label6" runat="server" Text='<%# Bind("time") %>'></asp:Label>
                        </ItemTemplate>
                    </asp:TemplateField>   
                             <asp:TemplateField HeaderText="状态">
                        <ItemTemplate>
                            <asp:Label ID="Label7" runat="server" Text='<%# Bind("state") %>'></asp:Label>
                        </ItemTemplate>
                    </asp:TemplateField>
                      <asp:CommandField ShowDeleteButton="True" />
                </Columns>   
                <FooterStyle BackColor="#53a694" Font-Bold="True" ForeColor="White" />
                <HeaderStyle BackColor="#53a694" Font-Bold="True" ForeColor="White" Height="38px" VerticalAlign="Middle" />
                <PagerStyle BackColor="#53a694" ForeColor="White" HorizontalAlign="Center" Height="30px" />
                <RowStyle BackColor="#f0faf8" Height="36px" />
                <SelectedRowStyle BackColor="#f3eae0" Font-Bold="True" ForeColor="#333333" />
                <SortedAscendingCellStyle BackColor="#F8FAFA" />
                <SortedAscendingHeaderStyle BackColor="#246B61" />
                <SortedDescendingCellStyle BackColor="#D4DFE1" />
                <SortedDescendingHeaderStyle BackColor="#15524A" />
      
            </asp:GridView>


</div>
       </div>
        <!-- 就诊评价 -->
       <div class="item">
           <table class="table table-bordered table-hover">
             <tr>
                
                 <td>就诊记录编号</td>
                 <td>日期</td>
                 <td>医生</td>
                 <td>科室</td>
                 <td>时段</td>
                 <td>就诊评价情况</td>
                 <td>删除该就诊记录</td>
             </tr>
             <tr>
                 <td>&nbsp;</td>
                 <td>&nbsp;</td>
                 <td>&nbsp;</td>
                 <td>&nbsp;</td>
                 <td>&nbsp;</td>
                 <td><asp:LinkButton ID="linkButton" runat="server" Text="已评价，查看评价记录" PostBackUrl="~/user/evaluateRecords.aspx"></asp:LinkButton></td>
                 <td><asp:Button ID="delete" runat="server" Text="删除"  /></td>
             </tr>

              <tr>
                 <td>&nbsp;</td>
                 <td>&nbsp;</td>
                 <td>&nbsp;</td>
                 <td>&nbsp;</td>
                 <td>&nbsp;</td>
                 < <td><asp:LinkButton ID="linkButton1" runat="server" Text="未评价，前往评价" PostBackUrl="~/user/evaluate.aspx"></asp:LinkButton></td>
                 <td><asp:Button  runat="server" Text="删除" /></td>
             </tr>
         </table>



            
       </div>


        <!-- 个人中心 -->
       <div class="item "  >
                 
                       <span>用户昵称：</span>
                                 <asp:Label ID="nick" runat="server" Text="Label"></asp:Label>   
           <br />
                           <span>真实姓名：</span>                
                                 <asp:Label ID="name" runat="server" Text="Label"></asp:Label>    
             <br />             
                        <span>电话号码：</span>                       
                                 <asp:Label ID="tel" runat="server" Text="Label"></asp:Label>    
             <br />         
                            <span>年龄：</span>            
                                 <asp:Label ID="age" runat="server" Text="Label"></asp:Label>
             <br />
                             <span>性别：</span>         
                                 <asp:Label ID="sex" runat="server" Text="Label"></asp:Label>
             <br />
                             <span>编号：</span>
                                 <asp:Label ID="id" runat="server" Text="Label"></asp:Label>
             <br />
                         <span>状态：</span>                          
                                 <asp:Label ID="state" runat="server" Text="Label"></asp:Label>     
             <br />         
         
               <div class="amendBtn" >修改个人信息</div>
         
                     <br />

 
       </div>
     
                  <!-- 修改个人信息 -->
       <div class="amend "  style ="display:none;">
            
                       <span>用户昵称：</span>
                         <asp:TextBox ID="c_nick" runat="server" type="text"></asp:TextBox>
           
           <br /> 
                           <span>真实姓名：</span>        
                            <asp:TextBox ID="c_name" runat="server" type="text"></asp:TextBox>
                       <%--<input type="text"   />--%>
             <br />             
                        <span>电话号码：</span>                 
                         <asp:TextBox ID="c_tel" runat="server" type="text"></asp:TextBox>
                       <%--<input type="text"   />--%> 
             <br />         
                            <span>年龄：</span>            
                            <asp:TextBox ID="c_age" runat="server" type="text"></asp:TextBox>
                       <%--<input type="text"   />--%>
             <br />
                             <span>性别：</span>      
                            <asp:TextBox ID="c_sex" runat="server" type="text"></asp:TextBox>
                       <%--<input type="text"   />--%>
             <br />
                             <span>编号：</span>
                            <asp:TextBox ID="c_id" runat="server" type="text"></asp:TextBox>
                       <%--<input type="text"   />--%>
             <br />
                         <span>状态：</span>      
                            <asp:TextBox ID="c_sta" runat="server" type="text"></asp:TextBox>
                       <%--<input type="text"   />--%>
             <br />         
         
             <%--<div class="amendBtn">--%>
                
           <asp:Button ID="ch_info" runat="server" Text="确认" OnClick="ch_info_Click" />
                       <%--</div>--%>

            <div class="returnBtn amendBtn" >返回</div>
         
       </div>
 
     
  

  
 
     
  

  </div>
   <!-- 内容区域结束 -->     
    <script src="../js/index.js" type="text/javascript"></script>

        <p>
            &nbsp;</p>
        <p>
            &nbsp;</p>
    </form>
    
</body>
   
</html>